import React, { Component } from 'react'
import {NavLink} from "react-router-dom"
export class RouterLink extends Component {
  render() {
  const {routerConfig} =this.props
    return (
      <div> 
        {routerConfig ? routerConfig.map((item,index)=>{
          return <NavLink to={item.path} key={index}> {item.text}</NavLink>
        }) :'暂无数据'
        }


      </div>
    )
  }
}

export default RouterLink